package bind;

import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;

public final class HelloBean {
	private PropertyChangeSupport changeSupport = new PropertyChangeSupport(this);
	public void addPropertyChangeListener(String propertyName,
			PropertyChangeListener listener) {
		changeSupport.addPropertyChangeListener(propertyName, listener);
	}
	public void removePropertyChangeListener(String propertyName,
			PropertyChangeListener listener) {
		changeSupport.removePropertyChangeListener(propertyName, listener);
	}
	private String hello;

	public String getHello() {
		return hello;
	}

	public void setHello(String hello) {
		String oh = this.hello;
		this.hello = hello;
		changeSupport.firePropertyChange("hello",oh,this.hello);
	}
	
}
